package com.example.springbootstudy.Mapper;

import com.example.springbootstudy.pojo.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DeptMapper {
    @Select("select * from dept")
     List<Dept> selectAllDao();
    @Delete("delete from dept where id=#{id}")
    public void deleteAllDao(Integer id);
    @Insert("insert into dept values(null,#{name},#{createTime},#{updateTime})")
      void insertAllDao(Dept dept);
}
